/* the HTTP console implementation

   Implements the grconsole interface via a webserver.

*/

import {
	"net/http"
	}

type HTTP_console struct{
	
	
	}

func (hc *HTTP_console) Init (dimensions coord, depth uint32, font-size uint8, runes []rune) bool
	{
		//create an HTTP server + initialise	
		return true

	}

func (hc HTTP_console) Refresh (db * DisplayBuffer, dirty []coord) bool
	{
		for _, c in dirty {
			//get coord, add the change to the list of DOM changes to be returned in the XMLHTTPrequest
		}
		return true
	}

func (hc HTTP_console) GetCommand() Command {      
        //poll XMLHTTPrequest
}

func (hc HTTP_console) GetItem() ItemID {
        //prompt for item selection with menu
}

func (hc HTTP_console) GetCoord() Coord {
        //prompt for coordinate selection (presumably javascript mouse selection)
}

